package com.bsj.travel;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.CrossOrigin;

/**
 * @author yinhao
 * @version 1.0
 * @description 服务网关
 * @date 2022/8/23
 */
@MapperScan(basePackages = {"com.bsj.travel.**.mapper"})
@SpringBootApplication(scanBasePackages = {"com.bsj.travel"})
@CrossOrigin(origins = "*", maxAge = 3600)
public class PlatformGatewayApplication {

    public static void main(String[] args) {
        SpringApplication.run(PlatformGatewayApplication.class, args);
    }
}
